'use strict';
const httpCode = require('../utils/http-code');

module.exports = {
    returnBody(data = null, code = 0, status = 200) {
        this.status = status
        this.body = {
            code,
            message: httpCode[code] ? httpCode[code] : 'success',
            data
        };
    },
}